package cn.linran.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author director
 * @since 2022-08-29
 */
@TableName("t_user_ticket")
public class UserTicket extends Model<UserTicket> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 电影票id
     */
    @TableField("movie_ticket_id")
    private Long movieTicketId;
    /**
     * 0未使用，1已使用
     */
    private String status;


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getMovieTicketId() {
        return movieTicketId;
    }

    public void setMovieTicketId(Long movieTicketId) {
        this.movieTicketId = movieTicketId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "UserTicket{" +
        ", userId=" + userId +
        ", movieTicketId=" + movieTicketId +
        ", status=" + status +
        "}";
    }
}
